import java.awt.BorderLayout;
import java.awt.Color;

import javax.swing.JFrame;
import javax.swing.JTextField;

import antonTest.Nest;



public class MainFrame extends JFrame
{

	
	public MainFrame() {
		super("Ball Clinch");
		this.setSize(400, 400);
		this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		
		this.setLayout(new BorderLayout());
		
		TestPanel panel = new TestPanel();
		this.add(panel, BorderLayout.CENTER);
		
		JTextField text = new JTextField("This is a test.");
		text.setBackground(Color.RED);
		text.setHorizontalAlignment(JTextField.CENTER);
		this.add(text, BorderLayout.SOUTH);
		
		this.setVisible(true);
	}
}
